//
//  HWsendCommentsView.m
//  HappyWeekend
//
//  Created by lanou on 16/1/15.
//  Copyright © 2016年 com.mjykj.www. All rights reserved.
//

#import "HWsendCommentsView.h"

@implementation HWsendCommentsView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithRed:235.0f / 255.0f green:235.0f / 255.0f blue:241.0f / 255.0f alpha:1];
        CGFloat height = frame.size.height;
        _commetContentText = [[UITextField alloc] initWithFrame:CGRectMake(10, 5, kScreenWidth - 100, height - 10)];
        _commetContentText.borderStyle = UITextBorderStyleRoundedRect;
        [self addSubview:_commetContentText];
        
        _sendButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _sendButton.frame = CGRectMake(_commetContentText.right + 10, 0, 80, height);
        _sendButton.backgroundColor = [UIColor colorWithRed:235.0f / 255.0f green:235.0f / 255.0f blue:241.0f / 255.0f alpha:1];
        [_sendButton setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        [self addSubview:_sendButton];
        
    }
    return self;
}

@end
